package com.spark.lola.mapper.pur;

import com.spark.lola.entity.pur.OrderProduct;
import com.spark.lola.support.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dengyejun
 * @since 2020-04-24
 */
@Mapper
public interface OrderProductMapper extends BaseMapper<OrderProduct> {
    List<Map<String, Object>> sales(@Param("productId") Long productId, @Param("start") String start, @Param("end") String end);

    Integer pricing(@Param("orderId")Long orderId);

    Integer ressetPricing(@Param("orderId")Long orderId);

    List<OrderProduct> findByOrderId(@Param("orderId")Long orderId);
}
